package com.prototype.demo.practice;

/**
 * Created by Administrator on 2017/6/9.
 */
public class ShallowClient {
    public static void main(String[] args) {
        ShallowCustomer c1,c2;
        c1 = new ShallowCustomer();
        Address address = new Address();
        c1.setAddress(address);

        c2 = c1.clone();
        System.out.println(c1 == c2);
        System.out.println(c1.getAddress() == c2.getAddress());
    }
}
